package model.factory;

import model.factory.impl.HibernateDAOFactory;
import model.factory.impl.JdbcDAOFactory;
import persistence.dao.UserDAO;

public abstract class DAOFactory {
	// createdao fact cu param enum
	public static DAOFactory createDAOFactory(DataAcces da) {
		switch (da) {
		case JDBC:
			return new JdbcDAOFactory();
		case HIBERNATE:
			return new HibernateDAOFactory();
		default:
			return new JdbcDAOFactory();
		}

	}

	public abstract UserDAO getUserDAO();
}
